package com.shuidi.oilactivity.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.shuidi.oilactivity.R;
import com.shuidi.oilactivity.activity.CustomerActivity;
import com.tencent.bugly.crashreport.CrashReport;


/**
 * Created by maxliaops on 17-1-6.
 */

public class HomeFragment extends Fragment {

    private RelativeLayout layout1;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_home, container, false);
        layout1 = (RelativeLayout)rootView.findViewById(R.id.layout1);

        layout1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getContext(),CustomerActivity.class);
                startActivity(intent);
            }
        });

        return rootView;
    }
}
